package br.com.mworks.util;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Util {

	
	public static Date converterStringParaData(String data) {
		SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy");
		try {
			return new Date(format.parse(data).getTime());
		} catch (ParseException e) {
			System.out.println("erro");
		}
		return null;
	}
}
